package com.wy.panda.common.base.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wy.panda.common.base.dao.PandaBaseMapper;

/**
 * service基类（扩展）
 *
 * @param <M>
 * @param <T>
 * @author WangYuan
 * @since 2020年9月29日 下午4:27:58
 */
public class PandaServiceImpl<M extends PandaBaseMapper<T>, T> extends ServiceImpl<PandaBaseMapper<T>, T> implements IPandaService<T> {
	
	@Autowired
    protected M pandaBaseMapper;

    @Override
    public M getBaseMapper() {
        return pandaBaseMapper;
    }

	@Override
	public int insertBatchSomeColumn(List<T> entityList) {
		return pandaBaseMapper.insertBatchSomeColumn(entityList);
	}

	@Override
	public int alwaysUpdateSomeColumnById(T entity) {
		return pandaBaseMapper.alwaysUpdateSomeColumnById(entity);
	}

	@Override
	public int deleteByIdWithFill(T entity) {
		return pandaBaseMapper.deleteByIdWithFill(entity);
	}

}
